import 'package:flutter/material.dart';

class RippleContainer extends StatelessWidget {
  final Widget child;
  final BorderRadius? borderRadius;
  final GestureTapCallback? onTap;

  const RippleContainer({Key? key, required this.child, this.borderRadius,this.onTap})
      : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Center(
        child: Material(
            color:Colors.transparent,
            shadowColor:Colors.transparent,
            borderRadius: borderRadius ?? BorderRadius.circular(0),
            child: Ink(
                child: InkWell(
                    borderRadius: borderRadius ?? BorderRadius.circular(0),
                    onTap: onTap,
                    child: child))));
  }
}
